package com.yc.cloud.api.enums;

import com.yc.cloud.basic.enums.IEnumCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderTypeEnums implements IEnumCode {

    VIP("1", "购买会员");

    /**
     * 状态码
     */
    final String code;
    /**
     * 消息内容
     */
    final String description;


    public static boolean isValidEnum(String code) {
        for (OrderTypeEnums fundStatusEnum : OrderTypeEnums.values()) {
            if (fundStatusEnum.code.equals(code)) {
                return true;
            }
        }
        return false;
    }
}
